<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../../common/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@include file="../../common/common-css.jsp"%>
<%@include file="../../common/init.jsp"%>
</head>

<body>
	<div class="right">
        	<div class="volume">
            	<img src="images/toleft.png" style="margin:23px 0 0 2px;_margin:23px 0 0 0px;" />
            </div>
        	<div class="rightcon">
            	<div class="title">
                	您当前的位置：首页 > 订单管理 > 订单详情
                </div>
                	<div class="titlecon">
                            订单详情
                    </div>
                	<div class="detail">
                        
                        	<table class="detailcon" border="0" cellpadding="0" cellspacing="0">
                            	<tr>
                                	<td width="20%" align="right" class="odd">服务编号：
                                    </td>
                                    <td width="30%"  class="even">服务编号
                                    </td>
                                    <td width="20%" align="right" class="odd">用户姓名：
                                    </td>
                                    <td width="30%"  class="even" style="border-right:none;">${memberInfo.name }
                                    </td>
                                </tr>
                                <tr>
                                	<td width="20%" align="right" class="odd">服务商：
                                    </td>
                                    <td width="30%"  class="even">${serviceProvider.name }
                                    </td>
                                    <td width="20%" align="right" class="odd">年龄：
                                    </td>
                                    <td width="30%"  class="even" style="border-right:none;">${memberInfo.age }
                                    </td>
                                </tr><tr>
                                	<td width="20%" align="right" class="odd">服务电话：
                                    </td>
                                    <td width="30%"  class="even">${serviceProvider.telephone }
                                    </td>
                                    <td width="20%" align="right" class="odd">性别：
                                    </td>
                                    <td width="30%"  class="even" style="border-right:none;">${memberInfo.sex }
                                    </td>
                                </tr>
                                <tr>
                                	<td width="20%" align="right" class="odd">服务人员：
                                    </td>
                                    <td width="30%"  class="even">${serviceUser.name }
                                    </td>
                                    <td width="20%" align="right" class="odd">联系电话：
                                    </td>
                                    <td width="30%"  class="even" style="border-right:none;">${memberInfo.telephone }
                                    </td>
                                </tr>
                                <tr>
                                	<td width="20%" align="right" class="odd">服务人员电话：
                                    </td>
                                    <td width="30%"  class="even">${serviceUser.mobilephone }
                                    </td>
                                    <td width="20%" align="right" class="odd">设备电话：
                                    </td>
                                    <td width="30%"  class="even" style="border-right:none;">${memberInfo.deviceContact }
                                    </td>
                                </tr>
                                <tr>
                                	<td width="20%" align="right" class="odd">当前服务状态：
                                    </td>
                                    <td width="30%"  class="even"><c:if test="${role.orderStatus eq 'A'}">
              <span class="STYLE1">已下单</span>
              </c:if>
              <c:if test="${role.orderStatus eq 'B'}">
             <span class="STYLE1">已预约</span>
              </c:if>
              <c:if test="${role.orderStatus eq 'C'}">
             <span class="STYLE1">已完成</span>
              </c:if>
              <c:if test="${role.orderStatus eq 'D'}">
              <span class="STYLE1">已回访</span>
              </c:if>
               <c:if test="${role.orderStatus eq 'F'}">
              <span class="STYLE1">服务商取消</span>
              </c:if>
              <c:if test="${role.orderStatus eq 'E'}">
              <span class="STYLE1">用户取消</span>
              </c:if>
              <c:if test="${role.orderStatus != 'C' && role.orderStatus != 'D' && role.orderStatus != 'E' }">
            <sec:authorize ifAnyGranted="ROLE_order_callcenter_edit">
            <img src="${pageContext.servletContext.contextPath }/images/edt.gif" width="16" height="16" />
              <a href="${pageContext.servletContext.contextPath }/background/order/updateByUser.html?id=${role.id}">
                                     修改
            </a>
            </sec:authorize>
            <sec:authorize ifAnyGranted="ROLE_order_callcenter_delete">
            <img src="${pageContext.servletContext.contextPath }/images/edt.gif" width="16" height="16" />
              <a href="${pageContext.servletContext.contextPath }/background/order/update/userremove.html?id=${role.id}&&orderStatus=E">
                                     取消
            </a>
            </sec:authorize>
            </c:if>
            <c:if test="${role.orderStatus eq 'A'}">
            <sec:authorize ifAnyGranted="ROLE_order_serviceprovider_baspoke">
            <img src="${pageContext.servletContext.contextPath }/images/edt.gif" width="16" height="16" />
              <a href="${pageContext.servletContext.contextPath }/background/order/update/baskpoke.html?id=${role.id}&&orderStatus=B">
                                    预约
            </a>
            </sec:authorize>
            <sec:authorize ifAnyGranted="ROLE_order_serviceprovider_delete">
            <img src="${pageContext.servletContext.contextPath }/images/edt.gif" width="16" height="16" />
              <a href="${pageContext.servletContext.contextPath }/background/order/update/serviceremove.html?id=${role.id}&&orderStatus=F">
                                     取消
            </a>
            </sec:authorize>
              </c:if>
              <c:if test="${role.orderStatus eq 'B'}">
               <sec:authorize ifAnyGranted="ROLE_order_serviceprovider_ok">
            <img src="${pageContext.servletContext.contextPath }/images/edt.gif" width="16" height="16" />
              <a href="${pageContext.servletContext.contextPath }/background/order/update/ok.html?id=${role.id}&&orderStatus=C">
                                    完成
            </a>
            </sec:authorize>
              </c:if>
              <c:if test="${role.orderStatus eq 'C'}">
              <sec:authorize ifAnyGranted="ROLE_order_callcenter_callback">
              <img src="${pageContext.servletContext.contextPath }/images/edt.gif" width="16" height="16" />
              <a href="${pageContext.servletContext.contextPath }/background/order/update/callback.html?id=${role.id}&&orderStatus=D">
                                     回访
            </a>
            </sec:authorize>
              </c:if>
                                    </td>
                                    <td width="20%" align="right" class="odd">地址：
                                    </td>
                                    <td width="30%"  class="even" style="border-right:none;">${role.serviceAddress }
                                    </td>
                                </tr>
                                <c:forEach var="role" items="${orderlogs}">
                                <tr  >
                                	<td colspan="4" class="even1" >
                                	${role.time }&nbsp;&nbsp;${role.description }，备注：${role.notes }
                                    </td> 
                                </tr>
								</c:forEach>
                              </table> 
                             <div class="savere" style="float:center;padding-left:400px">
                                 <a href="javascript:history.go(-1)" ><img src="${pageContext.servletContext.contextPath }/images/fanhui.png" width="101" height="46"></a>
                            </div>
                         
                    </div><!--addlist-->
            </div><!--rightcon-->
        </div><!--right-->
</body>
</html>
